#include "stdafx.h"
#include "UtilProcess.h"

BOOL Util::Process::GetModuleFileName(HMODULE hModule, CString& strOut)
{
	TCHAR lpszBuffer[MAX_PATH + 1];
	DWORD dwRet = 0;
	dwRet = GetModuleFileName(hModule, lpszBuffer, MAX_PATH);
	
	if (dwRet != 0)
	{
		strOut = lpszBuffer;
		return TRUE;
	}

	return FALSE;
}
